
var replyHeight = 0;
// var replyContainerHeight = document.getElementsByClassName('reply-container')[0].style.height;
function addH() {

    if(replyHeight < 480){
        replyHeight += 40;
        document.getElementById('reply').style.height = replyHeight + 'px';
    }else{
        var btn = document.getElementById('replies-btn');
        btn.href = 'javascript:subH();';
        btn.innerText = '收起回复';
        btn.style.borderColor = "#004896";
        return;
    }
    setTimeout("addH()",30);

}
function subH() {

    if(replyHeight > 0){
        replyHeight -= 40;
        document.getElementById('reply').style.height = replyHeight + 'px';
    }else{
        var btn = document.getElementById('replies-btn');
        btn.href = 'javascript:addH();';
        btn.innerText = '回复{{16}}';
        btn.style.borderColor = "#ffffff";
        return;
    }
    setTimeout("subH()",30);

}
